//
//  GGFilterHandler.h
//  视频录制实时切换滤镜
//
//  Created by 聚点互动iOS on 2020/12/28.
//

#import <Foundation/Foundation.h>
#import <GPUImage/GPUImage.h>

NS_ASSUME_NONNULL_BEGIN

@interface GGFilterHandler : NSObject

/// 滤镜链源头
@property (nonatomic, weak) GPUImageOutput *source;


/// 第一个滤镜
@property (nonatomic, strong, readonly) GPUImageFilter *firstFilter;

/// 最后一个滤镜
@property (nonatomic, strong, readonly) GPUImageFilter *lastFilter;


/// 设置效果滤镜(添加输出)
- (void)setEffectFilter:(GPUImageFilter *)filter;


/// 替换掉最后一个滤镜
- (void)replaceLastFilter:(GPUImageFilter *)targetFilter;


@end

NS_ASSUME_NONNULL_END
